home *** CD-ROM | disk | FTP | other *** search
/ Level 2005 Christmas (DVD) / Level_2005-XMAS_134_DVD_Knightshift.iso / Updates / Land of the Dead / System / UWeb.u / WebResponse_ScriptText.TextBuffer < prev    next >
Unknown  |  2005-12-07  |  2.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% gt2 HTML (Hyper Text Markup Language) Datei default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 44 29 2f 2f 20 43 6f 70 |........|D)// Cop|
|00000010| 79 72 69 67 68 74 20 28 | 43 29 20 32 30 30 35 20 |yright (|C) 2005 |
|00000020| 42 72 61 69 6e 62 6f 78 | 20 47 61 6d 65 73 2e 20 |Brainbox| Games. |
|00000030| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00000040| 76 65 64 2e 0d 0a 2f 2f | 20 53 65 70 74 65 6d 62 |ved...//| Septemb|
|00000050| 65 72 20 32 37 2c 20 32 | 30 30 35 0d 0a 63 6c 61 |er 27, 2|005..cla|
|00000060| 73 73 20 57 65 62 52 65 | 73 70 6f 6e 73 65 20 65 |ss WebRe|sponse e|
|00000070| 78 74 65 6e 64 73 20 4f | 62 6a 65 63 74 0d 0a 09 |xtends O|bject...|
|00000080| 6e 61 74 69 76 65 0d 0a | 09 6e 6f 65 78 70 6f 72 |native..|.noexpor|
|00000090| 74 3b 0d 0a 0d 0a 76 61 | 72 20 70 72 69 76 61 74 |t;....va|r privat|
|000000a0| 65 20 6e 61 74 69 76 65 | 20 63 6f 6e 73 74 20 69 |e native| const i|
|000000b0| 6e 74 20 52 65 70 6c 61 | 63 65 6d 65 6e 74 4d 61 |nt Repla|cementMa|
|000000c0| 70 5b 35 5d 3b 09 2f 2f | 20 54 4d 61 70 3c 46 53 |p[5];.//| TMap<FS|
|000000d0| 74 72 69 6e 67 2c 20 46 | 53 74 72 69 6e 67 3e 21 |tring, F|String>!|
|000000e0| 0d 0a 76 61 72 20 63 6f | 6e 73 74 20 63 6f 6e 66 |..var co|nst conf|
|000000f0| 69 67 20 73 74 72 69 6e | 67 20 49 6e 63 6c 75 64 |ig strin|g Includ|
|00000100| 65 50 61 74 68 3b 0d 0a | 76 61 72 20 57 65 62 43 |ePath;..|var WebC|
|00000110| 6f 6e 6e 65 63 74 69 6f | 6e 20 43 6f 6e 6e 65 63 |onnectio|n Connec|
|00000120| 74 69 6f 6e 3b 0d 0a 76 | 61 72 20 62 6f 6f 6c 20 |tion;..v|ar bool |
|00000130| 62 53 65 6e 74 54 65 78 | 74 3b 20 2f 2f 20 75 73 |bSentTex|t; // us|
|00000140| 65 64 20 74 6f 20 77 61 | 72 6e 20 68 65 61 64 65 |ed to wa|rn heade|
|00000150| 72 73 20 61 6c 72 65 61 | 64 79 20 73 65 6e 74 0d |rs alrea|dy sent.|
|00000160| 0a 76 61 72 20 62 6f 6f | 6c 20 62 53 65 6e 74 52 |.var boo|l bSentR|
|00000170| 65 73 70 6f 6e 73 65 3b | 0d 0a 0d 0a 2f 2f 20 75 |esponse;|....// u|
|00000180| 68 74 6d 20 69 6e 63 6c | 75 64 69 6e 67 0d 0a 6e |htm incl|uding..n|
|00000190| 61 74 69 76 65 20 66 69 | 6e 61 6c 20 66 75 6e 63 |ative fi|nal func|
|000001a0| 74 69 6f 6e 20 53 75 62 | 73 74 28 73 74 72 69 6e |tion Sub|st(strin|
|000001b0| 67 20 56 61 72 69 61 62 | 6c 65 2c 20 73 74 72 69 |g Variab|le, stri|
|000001c0| 6e 67 20 56 61 6c 75 65 | 2c 20 6f 70 74 69 6f 6e |ng Value|, option|
|000001d0| 61 6c 20 62 6f 6f 6c 20 | 62 43 6c 65 61 72 29 3b |al bool |bClear);|
|000001e0| 0d 0a 6e 61 74 69 76 65 | 20 66 69 6e 61 6c 20 66 |..native| final f|
|000001f0| 75 6e 63 74 69 6f 6e 20 | 43 6c 65 61 72 53 75 62 |unction |ClearSub|
|00000200| 73 74 28 29 3b 0d 0a 6e | 61 74 69 76 65 20 66 69 |st();..n|ative fi|
|00000210| 6e 61 6c 20 66 75 6e 63 | 74 69 6f 6e 20 49 6e 63 |nal func|tion Inc|
|00000220| 6c 75 64 65 55 48 54 4d | 28 73 74 72 69 6e 67 20 |ludeUHTM|(string |
|00000230| 46 69 6c 65 6e 61 6d 65 | 29 3b 0d 0a 6e 61 74 69 |Filename|);..nati|
|00000240| 76 65 20 66 69 6e 61 6c | 20 66 75 6e 63 74 69 6f |ve final| functio|
|00000250| 6e 20 49 6e 63 6c 75 64 | 65 42 69 6e 61 72 79 46 |n Includ|eBinaryF|
|00000260| 69 6c 65 28 73 74 72 69 | 6e 67 20 46 69 6c 65 6e |ile(stri|ng Filen|
|00000270| 61 6d 65 29 3b 0d 0a 0d | 0a 65 76 65 6e 74 20 53 |ame);...|.event S|
|00000280| 65 6e 64 54 65 78 74 28 | 73 74 72 69 6e 67 20 54 |endText(|string T|
|00000290| 65 78 74 2c 20 6f 70 74 | 69 6f 6e 61 6c 20 62 6f |ext, opt|ional bo|
|000002a0| 6f 6c 20 62 4e 6f 43 52 | 4c 46 29 0d 0a 7b 0d 0a |ol bNoCR|LF)..{..|
|000002b0| 09 69 66 28 21 62 53 65 | 6e 74 54 65 78 74 29 0d |.if(!bSe|ntText).|
|000002c0| 0a 09 7b 0d 0a 09 09 53 | 65 6e 64 53 74 61 6e 64 |..{....S|endStand|
|000002d0| 61 72 64 48 65 61 64 65 | 72 73 28 29 3b 0d 0a 09 |ardHeade|rs();...|
|000002e0| 09 62 53 65 6e 74 54 65 | 78 74 20 3d 20 54 72 75 |.bSentTe|xt = Tru|
|000002f0| 65 3b 0d 0a 09 7d 09 0d | 0a 0d 0a 09 69 66 28 62 |e;...}..|....if(b|
|00000300| 4e 6f 43 52 4c 46 29 0d | 0a 09 09 43 6f 6e 6e 65 |NoCRLF).|...Conne|
|00000310| 63 74 69 6f 6e 2e 53 65 | 6e 64 54 65 78 74 28 54 |ction.Se|ndText(T|
|00000320| 65 78 74 29 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |ext);...|else....|
|00000330| 43 6f 6e 6e 65 63 74 69 | 6f 6e 2e 53 65 6e 64 54 |Connecti|on.SendT|
|00000340| 65 78 74 28 54 65 78 74 | 24 43 68 72 28 31 33 29 |ext(Text|$Chr(13)|
|00000350| 24 43 68 72 28 31 30 29 | 29 3b 0d 0a 7d 0d 0a 0d |$Chr(10)|);..}...|
|00000360| 0a 65 76 65 6e 74 20 53 | 65 6e 64 42 69 6e 61 72 |.event S|endBinar|
|00000370| 79 28 69 6e 74 20 43 6f | 75 6e 74 2c 20 62 79 74 |y(int Co|unt, byt|
|00000380| 65 20 42 5b 32 35 35 5d | 29 0d 0a 7b 0d 0a 09 43 |e B[255]|)..{...C|
|00000390| 6f 6e 6e 65 63 74 69 6f | 6e 2e 53 65 6e 64 42 69 |onnectio|n.SendBi|
|000003a0| 6e 61 72 79 28 43 6f 75 | 6e 74 2c 20 42 29 3b 0d |nary(Cou|nt, B);.|
|000003b0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 46 |.}....fu|nction F|
|000003c0| 61 69 6c 41 75 74 68 65 | 6e 74 69 63 61 74 69 6f |ailAuthe|nticatio|
|000003d0| 6e 28 73 74 72 69 6e 67 | 20 52 65 61 6c 6d 29 0d |n(string| Realm).|
|000003e0| 0a 7b 0d 0a 09 48 54 54 | 50 45 72 72 6f 72 28 34 |.{...HTT|PError(4|
|000003f0| 30 31 2c 20 52 65 61 6c | 6d 29 3b 0d 0a 7d 0d 0a |01, Real|m);..}..|
|00000400| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 48 54 54 50 52 |..functi|on HTTPR|
|00000410| 65 73 70 6f 6e 73 65 28 | 73 74 72 69 6e 67 20 48 |esponse(|string H|
|00000420| 65 61 64 65 72 29 0d 0a | 7b 0d 0a 09 48 54 54 50 |eader)..|{...HTTP|
|00000430| 48 65 61 64 65 72 28 48 | 65 61 64 65 72 29 3b 0d |Header(H|eader);.|
|00000440| 0a 09 62 53 65 6e 74 52 | 65 73 70 6f 6e 73 65 20 |..bSentR|esponse |
|00000450| 3d 20 54 72 75 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |= True;.|.}....fu|
|00000460| 6e 63 74 69 6f 6e 20 48 | 54 54 50 48 65 61 64 65 |nction H|TTPHeade|
|00000470| 72 28 73 74 72 69 6e 67 | 20 48 65 61 64 65 72 29 |r(string| Header)|
|00000480| 0d 0a 7b 0d 0a 09 69 66 | 28 62 53 65 6e 74 54 65 |..{...if|(bSentTe|
|00000490| 78 74 29 0d 0a 09 09 4c | 6f 67 28 22 43 61 6e 27 |xt)....L|og("Can'|
|000004a0| 74 20 73 65 6e 64 20 68 | 65 61 64 65 72 73 20 2d |t send h|eaders -|
|000004b0| 20 61 6c 72 65 61 64 79 | 20 63 61 6c 6c 65 64 20 | already| called |
|000004c0| 53 65 6e 64 54 65 78 74 | 28 29 22 29 3b 0d 0a 0d |SendText|()");...|
|000004d0| 0a 09 43 6f 6e 6e 65 63 | 74 69 6f 6e 2e 53 65 6e |..Connec|tion.Sen|
|000004e0| 64 54 65 78 74 28 48 65 | 61 64 65 72 24 43 68 72 |dText(He|ader$Chr|
|000004f0| 28 31 33 29 24 43 68 72 | 28 31 30 29 29 3b 0d 0a |(13)$Chr|(10));..|
|00000500| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 48 54 |}....fun|ction HT|
|00000510| 54 50 45 72 72 6f 72 28 | 69 6e 74 20 45 72 72 6f |TPError(|int Erro|
|00000520| 72 4e 75 6d 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 73 |rNum, op|tional s|
|00000530| 74 72 69 6e 67 20 44 61 | 74 61 29 0d 0a 7b 0d 0a |tring Da|ta)..{..|
|00000540| 09 73 77 69 74 63 68 28 | 45 72 72 6f 72 4e 75 6d |.switch(|ErrorNum|
|00000550| 29 0d 0a 09 7b 0d 0a 09 | 63 61 73 65 20 34 30 30 |)...{...|case 400|
|00000560| 3a 0d 0a 09 09 48 54 54 | 50 52 65 73 70 6f 6e 73 |:....HTT|PRespons|
|00000570| 65 28 22 48 54 54 50 2f | 31 2e 31 20 34 30 30 20 |e("HTTP/|1.1 400 |
|00000580| 42 61 64 20 52 65 71 75 | 65 73 74 22 29 3b 0d 0a |Bad Requ|est");..|
|00000590| 09 09 53 65 6e 64 54 65 | 78 74 28 22 3c 54 49 54 |..SendTe|xt("<TIT|
|000005a0| 4c 45 3e 34 30 30 20 42 | 61 64 20 52 65 71 75 65 |LE>400 B|ad Reque|
|000005b0| 73 74 3c 2f 54 49 54 4c | 45 3e 3c 48 31 3e 34 30 |st</TITL|E><H1>40|
|000005c0| 30 20 42 61 64 20 52 65 | 71 75 65 73 74 3c 2f 48 |0 Bad Re|quest</H|
|000005d0| 31 3e 49 66 20 79 6f 75 | 20 67 6f 74 20 74 68 69 |1>If you| got thi|
|000005e0| 73 20 65 72 72 6f 72 20 | 66 72 6f 6d 20 61 20 73 |s error |from a s|
|000005f0| 74 61 6e 64 61 72 64 20 | 77 65 62 20 62 72 6f 77 |tandard |web brow|
|00000600| 73 65 72 2c 20 70 6c 65 | 61 73 65 20 6d 61 69 6c |ser, ple|ase mail|
|00000610| 20 6a 61 63 6b 40 65 70 | 69 63 67 61 6d 65 73 2e | jack@ep|icgames.|
|00000620| 63 6f 6d 20 61 6e 64 20 | 73 75 62 6d 69 74 20 61 |com and |submit a|
|00000630| 20 62 75 67 20 72 65 70 | 6f 72 74 2e 22 29 3b 0d | bug rep|ort.");.|
|00000640| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 63 61 73 65 |...break|;...case|
|00000650| 20 34 30 31 3a 0d 0a 09 | 09 48 54 54 50 52 65 73 | 401:...|.HTTPRes|
|00000660| 70 6f 6e 73 65 28 22 48 | 54 54 50 2f 31 2e 31 20 |ponse("H|TTP/1.1 |
|00000670| 34 30 31 20 55 6e 61 75 | 74 68 6f 72 69 7a 65 64 |401 Unau|thorized|
|00000680| 22 29 3b 0d 0a 09 09 48 | 54 54 50 48 65 61 64 65 |");....H|TTPHeade|
|00000690| 72 28 22 57 57 57 2d 61 | 75 74 68 65 6e 74 69 63 |r("WWW-a|uthentic|
|000006a0| 61 74 65 3a 20 62 61 73 | 69 63 20 72 65 61 6c 6d |ate: bas|ic realm|
|000006b0| 3d 5c 22 22 24 44 61 74 | 61 24 22 5c 22 22 29 3b |=\""$Dat|a$"\"");|
|000006c0| 0d 0a 09 09 53 65 6e 64 | 54 65 78 74 28 22 3c 54 |....Send|Text("<T|
|000006d0| 49 54 4c 45 3e 34 30 31 | 20 55 6e 61 75 74 68 6f |ITLE>401| Unautho|
|000006e0| 72 69 7a 65 64 3c 2f 54 | 49 54 4c 45 3e 3c 48 31 |rized</T|ITLE><H1|
|000006f0| 3e 34 30 31 20 55 6e 61 | 75 74 68 6f 72 69 7a 65 |>401 Una|uthorize|
|00000700| 64 3c 2f 48 31 3e 22 29 | 3b 0d 0a 09 09 62 72 65 |d</H1>")|;....bre|
|00000710| 61 6b 3b 0d 0a 09 63 61 | 73 65 20 34 30 34 3a 0d |ak;...ca|se 404:.|
|00000720| 0a 09 09 48 54 54 50 52 | 65 73 70 6f 6e 73 65 28 |...HTTPR|esponse(|
|00000730| 22 48 54 54 50 2f 31 2e | 31 20 34 30 34 20 4f 62 |"HTTP/1.|1 404 Ob|
|00000740| 6a 65 63 74 20 4e 6f 74 | 20 46 6f 75 6e 64 22 29 |ject Not| Found")|
|00000750| 3b 0d 0a 09 09 53 65 6e | 64 54 65 78 74 28 22 3c |;....Sen|dText("<|
|00000760| 54 49 54 4c 45 3e 34 30 | 34 20 46 69 6c 65 20 4e |TITLE>40|4 File N|
|00000770| 6f 74 20 46 6f 75 6e 64 | 3c 2f 54 49 54 4c 45 3e |ot Found|</TITLE>|
|00000780| 3c 48 31 3e 34 30 34 20 | 46 69 6c 65 20 4e 6f 74 |<H1>404 |File Not|
|00000790| 20 46 6f 75 6e 64 3c 2f | 48 31 3e 54 68 65 20 55 | Found</|H1>The U|
|000007a0| 52 4c 20 79 6f 75 20 72 | 65 71 75 65 73 74 65 64 |RL you r|equested|
|000007b0| 20 77 61 73 20 6e 6f 74 | 20 66 6f 75 6e 64 2e 22 | was not| found."|
|000007c0| 29 3b 0d 0a 09 09 62 72 | 65 61 6b 3b 0d 0a 09 64 |);....br|eak;...d|
|000007d0| 65 66 61 75 6c 74 3a 0d | 0a 09 09 62 72 65 61 6b |efault:.|...break|
|000007e0| 3b 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |;...}..}|....func|
|000007f0| 74 69 6f 6e 20 53 65 6e | 64 53 74 61 6e 64 61 72 |tion Sen|dStandar|
|00000800| 64 48 65 61 64 65 72 73 | 28 20 6f 70 74 69 6f 6e |dHeaders|( option|
|00000810| 61 6c 20 73 74 72 69 6e | 67 20 43 6f 6e 74 65 6e |al strin|g Conten|
|00000820| 74 54 79 70 65 20 29 0d | 0a 7b 0d 0a 09 69 66 28 |tType ).|.{...if(|
|00000830| 43 6f 6e 74 65 6e 74 54 | 79 70 65 20 3d 3d 20 22 |ContentT|ype == "|
|00000840| 22 29 0d 0a 09 09 43 6f | 6e 74 65 6e 74 54 79 70 |")....Co|ntentTyp|
|00000850| 65 20 3d 20 22 74 65 78 | 74 2f 68 74 6d 6c 22 3b |e = "tex|t/html";|
|00000860| 0d 0a 09 69 66 28 21 62 | 53 65 6e 74 52 65 73 70 |...if(!b|SentResp|
|00000870| 6f 6e 73 65 29 0d 0a 09 | 09 48 54 54 50 52 65 73 |onse)...|.HTTPRes|
|00000880| 70 6f 6e 73 65 28 22 48 | 54 54 50 2f 31 2e 31 20 |ponse("H|TTP/1.1 |
|00000890| 32 30 30 20 4f 4b 22 29 | 3b 0d 0a 09 48 54 54 50 |200 OK")|;...HTTP|
|000008a0| 48 65 61 64 65 72 28 22 | 53 65 72 76 65 72 3a 20 |Header("|Server: |
|000008b0| 55 6e 72 65 61 6c 45 6e | 67 69 6e 65 20 55 57 65 |UnrealEn|gine UWe|
|000008c0| 62 20 57 65 62 20 53 65 | 72 76 65 72 20 42 75 69 |b Web Se|rver Bui|
|000008d0| 6c 64 20 22 24 43 6f 6e | 6e 65 63 74 69 6f 6e 2e |ld "$Con|nection.|
|000008e0| 4c 65 76 65 6c 2e 45 6e | 67 69 6e 65 56 65 72 73 |Level.En|gineVers|
|000008f0| 69 6f 6e 29 3b 0d 0a 09 | 48 54 54 50 48 65 61 64 |ion);...|HTTPHead|
|00000900| 65 72 28 22 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |er("Cont|ent-Type|
|00000910| 3a 20 22 24 43 6f 6e 74 | 65 6e 74 54 79 70 65 29 |: "$Cont|entType)|
|00000920| 3b 0d 0a 09 48 54 54 50 | 48 65 61 64 65 72 28 22 |;...HTTP|Header("|
|00000930| 22 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |");..}..|..functi|
|00000940| 6f 6e 20 52 65 64 69 72 | 65 63 74 28 73 74 72 69 |on Redir|ect(stri|
|00000950| 6e 67 20 55 52 4c 29 0d | 0a 7b 0d 0a 09 48 54 54 |ng URL).|.{...HTT|
|00000960| 50 52 65 73 70 6f 6e 73 | 65 28 22 48 54 54 50 2f |PRespons|e("HTTP/|
|00000970| 31 2e 31 20 33 30 32 20 | 44 6f 63 75 6d 65 6e 74 |1.1 302 |Document|
|00000980| 20 4d 6f 76 65 64 22 29 | 3b 0d 0a 09 48 54 54 50 | Moved")|;...HTTP|
|00000990| 48 65 61 64 65 72 28 22 | 4c 6f 63 61 74 69 6f 6e |Header("|Location|
|000009a0| 3a 20 22 24 55 52 4c 29 | 3b 0d 0a 09 53 65 6e 64 |: "$URL)|;...Send|
|000009b0| 54 65 78 74 28 22 3c 68 | 65 61 64 3e 3c 74 69 74 |Text("<h|ead><tit|
|000009c0| 6c 65 3e 44 6f 63 75 6d | 65 6e 74 20 4d 6f 76 65 |le>Docum|ent Move|
|000009d0| 64 3c 2f 74 69 74 6c 65 | 3e 3c 2f 68 65 61 64 3e |d</title|></head>|
|000009e0| 22 29 3b 0d 0a 09 53 65 | 6e 64 54 65 78 74 28 22 |");...Se|ndText("|
|000009f0| 3c 62 6f 64 79 3e 3c 68 | 31 3e 4f 62 6a 65 63 74 |<body><h|1>Object|
|00000a00| 20 4d 6f 76 65 64 3c 2f | 68 31 3e 54 68 69 73 20 | Moved</|h1>This |
|00000a10| 64 6f 63 75 6d 65 6e 74 | 20 6d 61 79 20 62 65 20 |document| may be |
|00000a20| 66 6f 75 6e 64 20 3c 61 | 20 48 52 45 46 3d 5c 22 |found <a| HREF=\"|
|00000a30| 22 24 55 52 4c 24 22 5c | 22 3e 68 65 72 65 3c 2f |"$URL$"\|">here</|
|00000a40| 61 3e 2e 22 29 3b 0d 0a | 7d 0d 0a 0d 0a 00 |a>.");..|}..... |
+--------+-------------------------+-------------------------+--------+--------+